mm: check for truncation in vmalloc_type()
authorJan Beulich <jbeulich@suse.com>
Wed, 25 Nov 2020 13:07:36 +0000 (14:07 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 25 Nov 2020 13:07:36 +0000 (14:07 +0100)
commit500516fcb9e1c09eae9bbbd3b30bb294c6993853
tree880175650ceef7b36611501be36d74e542b2b2d0
parent8041317f72f684ee4e64209c0dd4a8b7ea200e0b
mm: check for truncation in vmalloc_type()

While it's currently implied from the checking xmalloc_array() does,
let's make this more explicit in the function itself. As a result both
involved local variables don't need to have size_t type anymore. This
brings them in line with the rest of the code in this file.

Requested-by: Julien Grall <julien@xen.org>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Julien Grall <jgrall@amazon.com>
xen/common/vmap.c